package com.javabasic.algorithm.basic_interview;

/**
 * @author mir.xiong
 * @version 1.0
 * @description
 * @see
 * @since Created by work on 2022/2/27 10:31 下午
 */
public class ClassLoadBasic {

//    static {
//        a++;
//        System.out.println(a);
//    }
//
//    private static int a = 0;
//
//    public static void main(String[] args) {
//        a++;
//        System.out.println(a);
//    }

    private static int a = 0;

    static {
        a++;
        System.out.println(a);
    }

    public static void main(String[] args) {
        a++;
        System.out.println(a);
    }
}
